package com.huawei.crm.event;

import org.springframework.context.ApplicationEvent;

/**
 * 事件（event）可以封装和传递监听器中要处理的参数，如对象或字符串，并作为监听器中监听的目标。
 *
 * @author luohua
 */
public class MyTestEvent extends ApplicationEvent {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private String msg;

    public MyTestEvent(Object source, String msg) {
        super(source);
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}